﻿using Abp.Organizations;
using System.ComponentModel.DataAnnotations;
using Abp.Domain.Entities;

namespace Mt.Organizations
{
    public class MtOrganizationUnit: OrganizationUnit , IPassivable
    {
        public const int MaxShortNameLength = 50;

        public MtOrganizationUnit() :base()
        {
        }

        public MtOrganizationUnit(int? tenantId, string displayName, long? parentId = null) 
            : base(tenantId, displayName, parentId)
        {
        }

        /// <summary>
        /// 部门简称
        /// </summary>
        [StringLength(MaxShortNameLength)]
        public string ShortName { get; set; }

        public bool IsActive { get; set; }
    }
}
